package com.eugenezadyra.rsstotwitter.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import java.util.List;

/**
 * @author eugene zadyra
 */
@Entity(name = "user")
public class User extends AbstractEntity{
	@Column(name = "display_name")
	private String displayName;
	private String email;
	private String password;
	@OneToMany(mappedBy = "user")
	private List<TwitterFeedSubscription> twitterFeedSubscriptions;

	public User() {
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public List<TwitterFeedSubscription> getTwitterFeedSubscriptions() {
		return twitterFeedSubscriptions;
	}

	public void setTwitterFeedSubscriptions(List<TwitterFeedSubscription> twitterFeedSubscriptions) {
		this.twitterFeedSubscriptions = twitterFeedSubscriptions;
	}
}
